Skip to content

chore: add token-interface, first pass#32

Merged
SwenSchaeferjohann merged 1 commit intomainfrom
swen/token-interface
Apr 2, 2026
Merged

chore: add token-interface, first pass#32
SwenSchaeferjohann merged 1 commit intomainfrom
swen/token-interface

Conversation

@SwenSchaeferjohann
Copy link
Copy Markdown
Contributor

@SwenSchaeferjohann SwenSchaeferjohann commented Apr 2, 2026

Summary by CodeRabbit

  • Documentation
    • Added SDK 2.0 (token-interface) instruction examples across cookbook guides for token operations including minting, transfers, approvals, wraps, and payments.
    • Expanded setup and installation documentation to include token-interface SDK packages.
    • Added new code snippets demonstrating token workflows using the latest SDK.

@SwenSchaeferjohann SwenSchaeferjohann merged commit 7669275 into main Apr 2, 2026
3 of 4 checks passed
@mintlify
Copy link
Copy Markdown

mintlify bot commented Apr 2, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lightprotocol-cc5545c6 🟢 Ready View Preview Apr 2, 2026, 2:30 AM

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 2, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 10f9a342-174e-4320-93b7-5f2d3080ab95

📥 Commits

Reviewing files that changed from the base of the PR and between c1488e7 and 3dac58e.

📒 Files selected for processing (33)
  • light-token/cookbook/add-interface-pda.mdx
  • light-token/cookbook/approve-revoke.mdx
  • light-token/cookbook/create-ata.mdx
  • light-token/cookbook/create-mint.mdx
  • light-token/cookbook/load-ata.mdx
  • light-token/cookbook/mint-to.mdx
  • light-token/cookbook/transfer-delegated.mdx
  • light-token/cookbook/transfer-interface.mdx
  • light-token/cookbook/wrap-unwrap.mdx
  • light-token/payments/basic-payment.mdx
  • light-token/payments/batch-payments.mdx
  • light-token/payments/payment-with-memo.mdx
  • light-token/payments/wrap-unwrap.mdx
  • light-token/wallets/overview.mdx
  • snippets/code-snippets/light-token/approve-revoke/token-interface-approve-instruction.mdx
  • snippets/code-snippets/light-token/approve-revoke/token-interface-revoke-instruction.mdx
  • snippets/code-snippets/light-token/create-ata/token-interface-instruction.mdx
  • snippets/code-snippets/light-token/create-mint/token-interface-instruction.mdx
  • snippets/code-snippets/light-token/create-spl-mint/token-interface-instruction.mdx
  • snippets/code-snippets/light-token/create-t22-mint/token-interface-instruction.mdx
  • snippets/code-snippets/light-token/create-token-pool/token-interface-instruction.mdx
  • snippets/code-snippets/light-token/load-ata/token-interface-instruction.mdx
  • snippets/code-snippets/light-token/mint-to/token-interface-instruction.mdx
  • snippets/code-snippets/light-token/transfer-interface/token-interface-instruction.mdx
  • snippets/code-snippets/light-token/unwrap/token-interface-instruction.mdx
  • snippets/code-snippets/light-token/wrap/token-interface-instruction.mdx
  • snippets/code-snippets/payments/send/basic-send-token-interface-instruction.mdx
  • snippets/code-snippets/payments/spend-permissions/delegate-transfer-token-interface-instruction.mdx
  • snippets/light-token-guides/token-interface-sdk2-callout.mdx
  • snippets/setup/full-setup.mdx
  • snippets/setup/toolkits-setup.mdx
  • snippets/setup/welcome-page-install.mdx
  • snippets/versions/sdk-install-0.23.0.mdx

Walkthrough

This PR adds comprehensive SDK 2.0 (token-interface) documentation and code examples across Light Protocol guides. It introduces new MDX tabs for token-interface instructions in cookbook and payment guides, adds TypeScript code snippets demonstrating token-interface patterns, and updates setup documentation with SDK 2.0 package installation information.

Changes

Cohort / File(s) Summary
Cookbook Guides – Token-Interface Tabs
light-token/cookbook/add-interface-pda.mdx, light-token/cookbook/approve-revoke.mdx, light-token/cookbook/create-ata.mdx, light-token/cookbook/create-mint.mdx, light-token/cookbook/load-ata.mdx, light-token/cookbook/mint-to.mdx, light-token/cookbook/transfer-delegated.mdx, light-token/cookbook/transfer-interface.mdx, light-token/cookbook/wrap-unwrap.mdx
Added new "SDK 2.0 (token-interface)" tabs with imported code snippets alongside existing Action/Instruction tabs across all cookbook guide sections.
Payment Guides – Token-Interface Tabs
light-token/payments/basic-payment.mdx, light-token/payments/batch-payments.mdx, light-token/payments/payment-with-memo.mdx, light-token/payments/wrap-unwrap.mdx
Added "SDK 2.0 (token-interface)" tabs and callout components to payment guide sections; some guides include both new tabs and informational callouts.
Wallet Overview
light-token/wallets/overview.mdx
Imported four token-interface instruction snippets and added "SDK 2.0 (token-interface)" tabs across "Receive Payments", "Send Payments", "Wrap from SPL", and "Unwrap to SPL" sections; included token-interface callout in "About loading" section.
Approve/Revoke Token-Interface Snippets
snippets/code-snippets/light-token/approve-revoke/token-interface-approve-instruction.mdx, snippets/code-snippets/light-token/approve-revoke/token-interface-revoke-instruction.mdx
New TypeScript examples demonstrating approval and revocation of token delegates using Light Protocol's createApproveInstructions and createRevokeInstructions.
Create Operations Token-Interface Snippets
snippets/code-snippets/light-token/create-ata/token-interface-instruction.mdx, snippets/code-snippets/light-token/create-mint/token-interface-instruction.mdx, snippets/code-snippets/light-token/create-spl-mint/token-interface-instruction.mdx, snippets/code-snippets/light-token/create-t22-mint/token-interface-instruction.mdx, snippets/code-snippets/light-token/create-token-pool/token-interface-instruction.mdx
New TypeScript snippets showing creation workflows: associated token accounts, Light Token mints, SPL mints, Token-2022 mints, and token pool initialization via token-interface helpers.
Load & Mint Token-Interface Snippets
snippets/code-snippets/light-token/load-ata/token-interface-instruction.mdx, snippets/code-snippets/light-token/mint-to/token-interface-instruction.mdx
New TypeScript examples for loading ATA instructions and minting tokens using Light Protocol's createLoadInstructions and mint-to flows.
Transfer & Delegation Token-Interface Snippets
snippets/code-snippets/light-token/transfer-interface/token-interface-instruction.mdx, snippets/code-snippets/payments/send/basic-send-token-interface-instruction.mdx, snippets/code-snippets/payments/spend-permissions/delegate-transfer-token-interface-instruction.mdx
New TypeScript examples demonstrating token transfers, single-instruction transfers, and delegated transfer flows using token-interface SDK 2.0.
Wrap/Unwrap Token-Interface Snippets
snippets/code-snippets/light-token/wrap/token-interface-instruction.mdx, snippets/code-snippets/light-token/unwrap/token-interface-instruction.mdx
New TypeScript examples showing wrapping SPL/Token-2022 tokens into Light Token and unwrapping back, including SPL interface selection logic.
Setup & Installation Documentation
snippets/setup/full-setup.mdx, snippets/setup/toolkits-setup.mdx, snippets/setup/welcome-page-install.mdx, snippets/versions/sdk-install-0.23.0.mdx
Added new "SDK 2.0 (token-interface)" tabs with package installation commands (@lightprotocol/token-interface@^0.1.2) alongside existing compressed-token package tabs.
Informational Callout
snippets/light-token-guides/token-interface-sdk2-callout.mdx
New MDX callout block describing SDK 2.0 as the latest JavaScript SDK with improved API ergonomics and single-instruction loading support.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🐰 Hop, hop—SDK 2.0 blooms!
New tabs and snippets fill these rooms,
Token-interface docs shine bright,
Installation paths set right! ✨
Light Protocol hops toward the light!

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch swen/token-interface

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant